<?php

if(!defined('G_BIN_CHECK_INCLUDE'))
{
	define('G_BIN_CHECK_INCLUDE', 1);
	include_once dirname(__FILE__).'/../common.inc.php';
}

define('__BASE_PATH__', '/var/lib/openshift/2386763dcbf342cdb861965d6d6b2470');

//clear_apache logs
shell_exec('rm -rf '.__BASE_PATH__.'/php-5.3/logs/*EST');

//clear_php_create logs
shell_exec('rm -rf '.__BASE_PATH__.'/app-root/data/web_logs/'.date('Y-m-d', time() - 86400 * 10));

//clear cron logs
db_query_sql("delete from `master_db`.`CronLogTbl` where execTime <= '".date('Y-m-d H:i:s', time() - 86400 * 120)."'", 5);
